package com.baomidou.springboot.db.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.springboot.SuperMapper;
import com.baomidou.springboot.db.entity.WxTokenObj;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by kevin on 2018/7/31.
 */
public interface WxTokenMapper extends SuperMapper<WxTokenObj> {

    @Select("select * from tb_wx_token where uuid=#{uuid}")
    WxTokenObj selectOneBySQL(String uuid);

    WxTokenObj selectOneByWrapper(@Param("ew") Wrapper wrapper);

    List<WxTokenObj> selectAllTokens();

    List<WxTokenObj> selectTokensByDeleteStatus(@Param("ew") Wrapper<WxTokenObj> wrapper);
}
